package com.yn.pet.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * APP用户表(AppUser)表实体类
 *
 * @author makejava
 * @since 2025-07-09 16:26:55
 */
@Data
@TableName("t_app_user")
@EqualsAndHashCode(callSuper = true)
public class AppUser extends Model<AppUser> {
    //主键ID
    @TableId
    private Long appUserId;
    //手机号
    private String phone;
    //微信openid
    private String wxOpenid;
    //微信小程序openid
    private String miniOpenid;
    //微信公众号openid
    private String wxMpOpenId;
    //微信unionid
    private String wxUnionId;
    //昵称
    private String nickname;
    //头像
    private String avatar;
    //友能签名
    private String ynSign;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.appUserId;
    }
}

